package tld.test.interpreter
{
	/**
	 * This class stores the text of the program as it was 
	 * typed.
	 */
	public class Expression
	{
		public var head:String;
		
		public var tail:Array;
		
		public function Expression(head:String, tail:Array = null)
		{
			super();
			this.head = head;
			this.tail = tail;
		}
		
		public function toString():String
		{
			var args:String = tail ? " " + tail.join(" ") : "";
			return "(" + head + args + ")";
		}
	}
}